#ifndef LOGIN_SERVER_H
#define LOGIN_SERVER_H

#include "http_get.h"

class Login_Server : public Http_Get
{
	Q_OBJECT
public:
	explicit Login_Server(Http_Get * parent = 0);
	virtual ~Login_Server();

	void getV2(QString redirect_uri);

	static QString getTicket();
	static QString getUin();
	static QString getSid();
	static bool isV2();
	static bool exists();

Q_SIGNALS:
	void infoChanged(QString uin, QString sid, QString ticket);
	void login_error();

protected:
	void finished(QNetworkReply* reply);
};

#endif // LOGIN_SERVER_H
